package com.xinqi.modules.sys.dict.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.sys.dict.domain.SchoolEntity;
import com.xinqi.modules.sys.dict.dto.req.SchoolQueryDTO;
import com.xinqi.modules.sys.dict.dto.rsp.SchoolResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 学校表数据层
 *
 * @author: wenjie
 * @date: 2023/05/19
 */
@Mapper
public interface SchoolMapper extends SuperMapper<SchoolEntity> {
    Page<SchoolResultDTO> findPage(Page<Object> page, @Param("dto") SchoolQueryDTO query);

    List<SchoolResultDTO> findList(@Param("dto") SchoolQueryDTO query);
}
